package top.healthylife.gateway.platform.softwind.api.api.taxbasicdata;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.softwind.api.util.WindHttpUtil;
import top.healthylife.gateway.platform.softwind.dto.basedto.req.SoftWindUnifyReqDto;
import top.healthylife.gateway.platform.softwind.dto.res.WindResBasicTaxationDataDto;

/**
 * @author : GaoZeXi
 * @date 2021/7/21 9:58
 */

@Slf4j
@Service
@ApiServiceExplain( docUrl="https://wfq2020.com/channel-admin/#/login", price = 20, apiName = "纳税基础数据接口-V2.1", info = "纳税基础数据接口-V2.1")
public class WindBasicTaxationDataApi implements ParentFace<SoftWindUnifyReqDto, WindResBasicTaxationDataDto> {
    static final String URL = "/wuneng-web-api/v2/api/fumin/getTransaction";

    @Override
    public WindResBasicTaxationDataDto execute(SoftWindUnifyReqDto softWindUnifyReqDto) {
        return WindHttpUtil.httpRequest(softWindUnifyReqDto, URL, WindResBasicTaxationDataDto.class);
    }
}
